package com.jinken.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//动态刷新配置中心的内容
@RefreshScope
@RestController
public class HelloController {


    @Value("${message}")
    private String message;

    @RequestMapping("/hello")
    public String hello(){
        return message;
    }
}
